import request from '@/utils/request'

// 查询问卷细项列表
export function listQueFormDetail(query) {
  return request({
    url: '/secondVitim/QueFormDetail/list',
    method: 'get',
    params: query
  })
}

// 查询问卷细项详细
export function getQueFormDetail(id) {
  return request({
    url: '/secondVitim/QueFormDetail/' + id,
    method: 'get'
  })
}

// 新增问卷细项
export function addQueFormDetail(data) {
  return request({
    url: '/secondVitim/QueFormDetail',
    method: 'post',
    data: data
  })
}

// 修改问卷细项
export function updateQueFormDetail(data) {
  return request({
    url: '/secondVitim/QueFormDetail',
    method: 'put',
    data: data
  })
}

// 删除问卷细项
export function delQueFormDetail(id) {
  return request({
    url: '/secondVitim/QueFormDetail/' + id,
    method: 'delete'
  })
}
